#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
    int a = 0;
    scanf("%d", &a);
    int i = 0;
    for (i = 1; i <= a; i++)
    {
        int j = 0;
        for (j = 1; j <= a - i; j++)
        {
            printf(" ");
        }
        j = 1;
        for (j; j <= 1 + (i - 1) * 2; j++)
        {
            printf("*");
        }
        printf("\n");
    }
    i = 0;
    for (i = 1; i < a; i++)
    {
        int j = 0;
        for (j = 1; j <= i; j++)
        {
            printf(" ");
        }
        j = 1;
        for (j = 1 + (a - i - 1) * 2; j > 0; j--)
        {
            printf("*");
        }
        printf("\n");
    }
    return 0;
}